package org.crackjack.model;

import java.util.Date;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name = "schedules")
public class Schedule {

    private List<Date> freeTime;
    private List<Date> reservTime;

    @OneToMany(cascade = CascadeType.ALL)
    @Column(name = "free_time")
    public List<Date> getFreeTime() {
        return freeTime;
    }

    public void setFreeTime(List<Date> freeTime) {
        this.freeTime = freeTime;
    }

    @OneToMany(cascade = CascadeType.ALL)
    @Column(name = "reserv_time")
    public List<Date> getReservTime() {
        return reservTime;
    }

    public void setReservTime(List<Date> reservTime) {
        this.reservTime = reservTime;
    }

}
